home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-06-17 | 518 b | 35 lines | [TEXT/CWIE] |
- // OSQueueBase.h
-
- #ifndef OSQueueBase_h
- #define OSQueueBase_h
-
- #ifndef Integers_h
- #include "Integers.h"
- #endif
- #ifndef __OSUTILS__
- #include <OSUtils.h>
- #endif
-
- class OSQueueLinkBase;
-
- class OSQueueBase
- {
- private:
- volatile QHdr head;
-
- // not implemented:
- OSQueueBase( const OSQueueBase& );
- void operator=( const OSQueueBase& );
-
- public:
- OSQueueBase();
- ~OSQueueBase();
-
- bool IsEmpty() const { return head.qHead == 0; }
-
- void Put( OSQueueLinkBase& );
- OSQueueLinkBase *Get();
- };
-
- #endif
-